home *** CD-ROM | disk | FTP | other *** search
/ Champak 123 / (Vol 123) Jan 13 2011.iso / Games / island_fishing.swf / scripts / frame_223 / PlaceObject2_221_49 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2011-01-13  |  5KB  |  128 lines

  1. onClipEvent(enterFrame){
  2.    if(this.canmove <= 0)
  3.    {
  4.       this._x = _root.hook._x;
  5.       this._y = _root.hook._y;
  6.    }
  7.    if(_root.squid3esc >= 1)
  8.    {
  9.       this.play();
  10.       this.hooked = 0;
  11.       _root.guy.gotoAndStop(1);
  12.    }
  13.    if(this.hitTest(_root.rodend))
  14.    {
  15.       _root.guy.head.gotoAndPlay("yar");
  16.       unloadMovie(this);
  17.       _root.fish = _root.fish + 1;
  18.       _root.scorepopup.score.text = "20";
  19.       _root.scorepopup.play();
  20.       _root.score = _root.score + 1;
  21.       _root.score = _root.score + 1;
  22.       _root.score = _root.score + 1;
  23.       _root.score = _root.score + 1;
  24.       _root.score = _root.score + 1;
  25.       _root.score = _root.score + 1;
  26.       _root.score = _root.score + 1;
  27.       _root.score = _root.score + 1;
  28.       _root.score = _root.score + 1;
  29.       _root.score = _root.score + 1;
  30.       _root.score = _root.score + 1;
  31.       _root.score = _root.score + 1;
  32.       _root.score = _root.score + 1;
  33.       _root.score = _root.score + 1;
  34.       _root.score = _root.score + 1;
  35.       _root.score = _root.score + 1;
  36.       _root.score = _root.score + 1;
  37.       _root.score = _root.score + 1;
  38.       _root.score = _root.score + 1;
  39.       _root.score = _root.score + 1;
  40.       _root.hunger = _root.hunger + 1;
  41.       _root.hunger = _root.hunger + 1;
  42.       _root.hunger = _root.hunger + 1;
  43.       _root.hunger = _root.hunger + 1;
  44.       _root.hunger = _root.hunger + 1;
  45.       _root.hunger = _root.hunger + 1;
  46.       _root.hunger = _root.hunger + 1;
  47.       _root.hunger = _root.hunger + 1;
  48.       _root.hunger = _root.hunger + 1;
  49.       _root.hunger = _root.hunger + 1;
  50.       _root.hunger = _root.hunger + 1;
  51.       _root.hunger = _root.hunger + 1;
  52.       _root.hunger = _root.hunger + 1;
  53.       _root.hunger = _root.hunger + 1;
  54.       _root.hunger = _root.hunger + 1;
  55.       _root.hunger = _root.hunger + 1;
  56.       _root.hunger = _root.hunger + 1;
  57.       _root.hunger = _root.hunger + 1;
  58.       _root.hunger = _root.hunger + 1;
  59.       _root.hunger = _root.hunger + 1;
  60.       _root.hunger = _root.hunger + 1;
  61.       _root.hunger = _root.hunger + 1;
  62.       _root.hunger = _root.hunger + 1;
  63.       _root.hunger = _root.hunger + 1;
  64.       _root.hunger = _root.hunger + 1;
  65.       _root.hunger = _root.hunger + 1;
  66.       _root.hunger = _root.hunger + 1;
  67.       _root.hunger = _root.hunger + 1;
  68.       _root.hunger = _root.hunger + 1;
  69.       _root.hunger = _root.hunger + 1;
  70.    }
  71.    if(this.hitTest(_root.hook))
  72.    {
  73.       if(_root.f1.hooked <= 0)
  74.       {
  75.          if(_root.f2.hooked <= 0)
  76.          {
  77.             if(_root.f3.hooked <= 0)
  78.             {
  79.                if(_root.f4.hooked <= 0)
  80.                {
  81.                   if(_root.f5.hooked <= 0)
  82.                   {
  83.                      if(_root.f6.hooked <= 0)
  84.                      {
  85.                         if(_root.f7.hooked <= 0)
  86.                         {
  87.                            if(_root.f8.hooked <= 0)
  88.                            {
  89.                               if(_root.f10.hooked <= 0)
  90.                               {
  91.                                  if(this.flashing <= 0)
  92.                                  {
  93.                                     _root.guy.gotoAndStop(2);
  94.                                     if(_root.hook._x < 520)
  95.                                     {
  96.                                        _root.hook._x += 0.65;
  97.                                     }
  98.                                     if(_root.hook._y < 370)
  99.                                     {
  100.                                        _root.hook._y += 0.65;
  101.                                     }
  102.                                     this.hooked = 1;
  103.                                     this.canmove = 0;
  104.                                     _root.squid3timer.play();
  105.                                     this._x = _root.hook._x;
  106.                                     this._y = _root.hook._y;
  107.                                  }
  108.                                  else
  109.                                  {
  110.                                     this.canmove = 1;
  111.                                     this.hooked = 0;
  112.                                     if(this._y < 160)
  113.                                     {
  114.                                        this._y = 180;
  115.                                     }
  116.                                  }
  117.                               }
  118.                            }
  119.                         }
  120.                      }
  121.                   }
  122.                }
  123.             }
  124.          }
  125.       }
  126.    }
  127. }
  128.